package com.example.fmmall.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Date:2022/1/27
 * Author:Sun
 * Description:
 * Note:
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
//ApiModel实体类注解，用来说名实体类对象
@ApiModel(value = "响应的VO对象",description = "封装接口返回该前端的数据")
public class ResultVO {

    //响应给前端的状态码
    //10000响应成功，10001响应失败；
    //ApiModelProperty 属性的注解
    @ApiModelProperty(value = "响应状态码", dataType = "int")
    private int code;

    //响应给前端的提示信息
    @ApiModelProperty(value = "响应提示", dataType = "String")
    private String msg;

    //响应给前端的数据
    @ApiModelProperty(value = "响应数据", dataType = "String")
    private Object data;
}
